]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Include NoDisplay applications in application data
authorColin Walters <walters@verbum.org>
Tue, 30 Jun 2009 21:22:12 +0000 (17:22 -0400)
committerColin Walters <walters@verbum.org>
Tue, 30 Jun 2009 22:16:39 +0000 (18:16 -0400)
For now, we want to get Evince and Nautilus at least in the application
list.

src/shell-app-system.c

index 6e7bfb0a796941f0a253fd2b11aefd06da1f928d..50da81dfda7fab0a45736f3b2bfadcaf0617d2bb 100644 (file)
@@ -109,7 +109,11 @@ shell_app_system_init (ShellAppSystem *self)
                                                   (GDestroyNotify)g_free,
                                                   NULL);
 
-  priv->apps_tree = gmenu_tree_lookup ("applications.menu", GMENU_TREE_FLAGS_NONE);
+  /* For now, we want to pick up Evince, Nautilus, etc.  We'll
+   * handle NODISPLAY semantics at a higher level or investigate them
+   * case by case.
+   */
+  priv->apps_tree = gmenu_tree_lookup ("applications.menu", GMENU_TREE_FLAGS_INCLUDE_NODISPLAY);
   priv->settings_tree = gmenu_tree_lookup ("settings.menu", GMENU_TREE_FLAGS_NONE);
 
   gmenu_tree_add_monitor (priv->apps_tree, on_tree_changed, self);